package test.serverframe.armc.server.manager.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author UaenaSA
 */
@ApiModel("接口链路")
public class LinkInterface {

    @ApiModelProperty("节点id")
    private String nodeId;

    @ApiModelProperty("父id集合")
    private String parentIds;

    @ApiModelProperty("子id集合")
    private String childIds;

    @ApiModelProperty("接口ID")
    private String interfaceId;


    /**
     * 链路参数
     */
    @JsonIgnore
    @ApiModelProperty(value = "链路接口参数", hidden = true)
    private LinkParam linkParam;

    /**
     * 接口名称
     */
    @JsonIgnore
    @ApiModelProperty(value = "接口名称，用于新增时对应接口判断", hidden = true)
    private String interfaceName;

    public String getNodeId() {
        return nodeId;
    }

    public void setNodeId(String nodeId) {
        this.nodeId = nodeId == null ? null : nodeId.trim();
    }

    public String getParentIds() {
        return parentIds;
    }

    public void setParentIds(String parentId) {
        this.parentIds = parentId == null ? null : parentId.trim();
    }

    public String getInterfaceId() {
        return interfaceId;
    }

    public void setInterfaceId(String interfaceId) {
        this.interfaceId = interfaceId == null ? null : interfaceId.trim();
    }


    public LinkParam getLinkParam() {
        return linkParam;
    }

    public void setLinkParam(LinkParam linkParam) {
        this.linkParam = linkParam;
    }

    public String getInterfaceName() {
        return interfaceName;
    }

    public void setInterfaceName(String interfaceName) {
        this.interfaceName = interfaceName;
    }

    public String getChildIds() {
        return childIds;
    }

    public void setChildIds(String childIds) {
        this.childIds = childIds == null ? null : childIds.trim();
    }

}
